package com.lifesea.notify.sms;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>  </p>
 * User: chendw
 * Date: 2016/10/18 10:58
 */
public abstract class AbstractSmsService implements ISmsService {

    private final Logger logger = LoggerFactory.getLogger(AbstractSmsService.class);

    /**
     * 初始化发送器号段
     *
     * @return
     */
    abstract String[] initKey();

    /**
     * 注册短信通道，"*"表示使用所有通道
     */
    public void register() {
        SmsServiceRegister.register(initKey(), this);
    }


}
